<script setup lang="ts">
  // 获取屏幕边界到安全区域距离
  const { safeAreaInsets } = uni.getSystemInfoSync()
  const Toseek=()=>{
    uni.navigateTo({ url: '/pages/seek/seek' })
  }
  </script>
  
  <template>
    <view class="navbar" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
      <!-- logo文字 -->
      <view class="logo">
        <!-- <image class="logo-image" src=""></image> -->
        <text class="logo-title">篮球裁判员学习平台</text>
        <!-- <text class="logo-text" >新鲜 · 亲民 · 快捷</text> -->
      </view>
      <!-- 搜索条 -->
  
        <view class="search" @click="Toseek">
          <text class="icon-search">搜索</text>
          <text class="icon-scan"></text>
        </view> 
     
      
    </view>
  </template>
  
  <style lang="scss">
  /* 自定义导航条 */
  .navbar {
     
    /* background-color: rgba(53, 191, 241, 0.531); */
    background-image: url(@/static/images/navigator_bg.png);
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    .logo {
      display: flex;
      align-items: center;
      height: 64rpx;
      padding-left: 30rpx;
      align-items: center;
      .logo-image {
        width: 166rpx;
        height: 39rpx;
      }
      .logo-text {
        flex: 1;
        line-height: 37rpx;
        color: #fff;
        margin: 20rpx 0 0 20rpx;
        padding-left: 20rpx;
        border-left: 2rpx solid #fff;
        font-size: 26rpx;
      }
      .logo-title {
        width:auto;
        height: 39rpx;
      
        color: #fff;
        font-size: 45rpx;
      }
    }
    .search {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 10rpx 0 26rpx;
      height: 64rpx;
      margin: 16rpx 20rpx;
      color: #fff;
      font-size: 28rpx;
      border-radius: 32rpx;
      background-color: rgba(255, 255, 255, 0.5);
    }
    .icon-search {
      &::before {
        margin-right: 10rpx;
      }
    }
    .icon-scan {
      font-size: 30rpx;
      padding: 15rpx;
    }
  }
  </style>
  